import request from '@/utils/request'

// 创建问题反馈明细
export function createFeedbackDetail(data) {
  return request({
    url: '/system/feedback-detail/create',
    method: 'post',
    data: data
  })
}

// 更新问题反馈明细
export function updateFeedbackDetail(data) {
  return request({
    url: '/system/feedback-detail/update',
    method: 'put',
    data: data
  })
}

// 删除问题反馈明细
export function deleteFeedbackDetail(id) {
  return request({
    url: '/system/feedback-detail/delete?id=' + id,
    method: 'delete'
  })
}

// 获得问题反馈明细
export function getFeedbackDetail(id) {
  return request({
    url: '/system/feedback-detail/get?id=' + id,
    method: 'get'
  })
}

// 获得问题反馈明细分页
export function getFeedbackDetailPage(params) {
  return request({
    url: '/system/feedback-detail/page',
    method: 'get',
    params
  })
}

// 导出问题反馈明细 Excel
export function exportFeedbackDetailExcel(params) {
  return request({
    url: '/system/feedback-detail/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
